package com.jxl.mapper;

import com.jxl.entity.dto.RouteStationDTO;
import com.jxl.entity.po.RouteStation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 线路-站点关联表 Mapper 接口
 * </p>
 *
 * @author 金小梁
 * @since 2025-06-08
 */
public interface RouteStationMapper extends BaseMapper<RouteStation> {

    /**
     * 根据线路id删除
     * @param ids
     */
    void deleteByRouteIds(List<Long> ids);

    /**
     * 根据线路id查询
     * @param id
     * @return
     */
    List<RouteStationDTO> selectByRouteId(Long id);
}
